package windbell.domain.risk.proxy;

import com.uniquesoft.gwt.shared.GWTNamedEntity;
import edu.fudan.mylang.pf.ProxyTarget;
import windbell.domain.risk.proxy.IHasRiskCheckTemplateProxy;
import windbell.domain.risk.proxy.IHaveCheckTargetsProxy;
import windbell.domain.risk.proxy.IHaveRiskChecksProxy;
import windbell.domain.risk.proxy.RiskCheckSourceAction;

@ProxyTarget("windbell.domain.risk.RiskCheckSource")
public class RiskCheckSourceProxy extends GWTNamedEntity implements IHaveCheckTargetsProxy, IHaveRiskChecksProxy, IHasRiskCheckTemplateProxy {
  public RiskCheckSourceProxy() {
    this.setClazzName("windbell.domain.risk.RiskCheckSource");
  }
  
  private String status;
  
  public void setStatus(final String status) {
    this.status = status;
  }
  
  public String getStatus() {
    return this.status;
  }
  
  public Boolean isActionValid(final RiskCheckSourceAction action) {
    return RiskCheckSourceManager.isActionValid(action,status);
  }
}
